package com.keepmoving.service.impl;

import com.keepmoving.dao.CoachInfoDao;
import com.keepmoving.po.Coach;
import com.keepmoving.service.CoachInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xf
 * 教练详情业务逻辑实现类
 */
@Service
public class CoachInfoServiceImpl implements CoachInfoService {
    @Resource
    CoachInfoDao coachInfoDao;

    /**
     * id查询教练详情
     *
     * @param coid
     * @return
     */
    @Override
    public List<Coach> findByIdInfo(int coid) {
        return coachInfoDao.findByIdInfo(coid);
    }
}
